export default {
	getItem(key) {
		const getUserData = uni.getStorageSync(key);
		if (getUserData) {
			return JSON.parse(getUserData);
		}
		return null;
	},
	setItem(key,value) {
		 uni.setStorageSync(key, JSON.stringify(value));
	},
	removeItem(key) {
		uni.removeStorageSync(key);
	},
	clearStorage() {
		uni.clearStorageSync();
	}
}
